<% if @modules.length == 0%>
    <p>Não existem modulos cadastrados.</p>
<% else %>
    <table border="1">
    <thead>
        <tr>
            <td>Módulos</td>
        </tr>
    </thead>
    <tbody>
    <% for modul in @modules %>
        <tr>
            <td>
                <%=link_to_remote( 
                      modul, 
                      :url => { :action => "list_parameters", :module => modul },
                                :loading => "TrackSuite.ajax.loadding('parameters_#{modul}');", 
                                :loaded => "TrackSuite.ajax.loaded.clear('parameters_#{modul}');" 
                       )%> <span id="parameters_<%=modul%>">&nbsp;</span>
            </td>
        </tr>
        <tr id="parameter_tr_<%=modul%>" style="display:none;">&nbsp;</tr>
    <% end %>
    </tbody>
    <tfoot>
        <tr>
            <td>&nbsp;</td>
        </tr>
    </tfoot>
    </table>
<% end %>

